﻿using System;
using System.Data;
using System.Collections;
using CE.Database;

/// <summary>
/// Summary description for CarInsuranceDB
/// </summary>
/// 
namespace CE.CarInsurance
{
    public class CarInsuranceCheckDB
    {
        public CarInsuranceCheckDB()
        {
            //
            // TODO: Add constructor logic here
            //
        }

        public Int64 CheckUpdateStatus(Int64 ProviderCompanyId, Int64 ResultId, Int64 RefCEUserId, Int64 CarId)
        {
            MyDatabase _db = new MyDatabase();
            Int64 _result = -1;
            string _spName = "sprocCarInsuranceCheckUpdateStatus";

            SortedList _sPara = new SortedList();

            #region Parameter
            _sPara.Add("@ProviderCompanyId", ProviderCompanyId);
            _sPara.Add("@ResultId", ResultId);
            _sPara.Add("@CECarId", CarId);
            _sPara.Add("@RefCEUserId", RefCEUserId);
            #endregion

            _result = _db.ExecuteSP(_spName, _sPara);

            return _result;
        }
    }
}
